import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:pull_to_refresh_flutter3/pull_to_refresh_flutter3.dart';
import 'package:search_people/utils/component/list/section.dart';
import '../../bean/search/hot_people.dart';
import '../../bean/search/search_list.dart';
import '../../utils/storage.dart';
import '../../value/topcolors.dart';

class SearchState {
  var strHis = [];
  List<Widget> histroyWidget = [];
  int page = 1;
  List<HotPeople> hots = [];
  SearchList? serchList;
  List<Records> curRecords = [];

  List<SectionModel> resultList = [];

  String keywords = '';

  ///多选项关键词
  List<String> words = [];
  RefreshController refreshController = RefreshController();
  late TextEditingController textEditingController;

  SearchState() {
    textEditingController = TextEditingController();
    String str = SpUtil().getStr('his').toString();
    if (str.isNotEmpty) {
      strHis = str.substring(1, str.length - 1).split(',');
    }
  }
}
